package org.shuma.record.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author WangJunhe
 * @since 2024-06-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("operation_record")
public class OperationRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "operation_id", type = IdType.AUTO)
    private Long operationId;

    /**
     * 0 - 下线
1 - 上线
2 - 审批通过
3 - 发起审批
4 - 记录新增
5 - 审批驳回
     */
    private Integer operationState;

    /**
     * 操作时间

     */
    private LocalDateTime operationTime;

    /**
     * 操作人
     */
    private Long operatorId;

    /**
     * 是否删除
0 - 不删除
     */
    private Integer isDelete;

    /**
     * 备注
     */
    private String remark;

    /**
     * 商品id

     */
    private Long productId;


}
